﻿using System;
using System.Collections.Generic;
using System.Text;
using jade.core;
//using log4net;
using System.Net;

namespace Core
{
    class Program
    {
        protected const String DEFAULT_FILENAME = "config/leap.properties";
        //private static readonly ILog log = LogManager.GetLogger(typeof(Program));

        static void Main(string[] args)
        {
            //debug("Starting core platform");
            Profile profile = new ProfileImpl(DEFAULT_FILENAME);
            profile.setParameter(Profile.MTPS, "jade.mtp.http.MessageTransportProtocol(http://localhost:7775/acc)");

            //printProfile(profile);


            Runtime rt = Runtime.instance();
            jade.wrapper.AgentContainer container = rt.createMainContainer(profile);
            //debug("Main container started successfully");


            //WebClient client = new WebClient();
            //Console.WriteLine(client.DownloadString("http://localhost:3643/start"));
        }

        /*private static void debug(string p)
        {
            if (log.IsDebugEnabled)
            {
                log.Debug("Core platform: " + p);
            }
        }

        */

    }
}
